#ifndef DXTEXT_H
#define DXTEXT_H

#include "DXEngine.h"

class DXText
{
	public:
		DXText (void);
		DXText (LPDIRECT3DDEVICE9 DrawDevice, UINT TextSize = 12, LPCTSTR FontName = L"Arial", DWORD TextColor = COLOR(255, 255, 255, 255));
		~DXText (void);

		void CreateFont (void);
		void Draw (void);

		void SetTextSize (UINT TextSize);
		void SetFont (LPCTSTR FontName);
		void SetColor (DWORD TextColor);
		void SetTextLocation (LONG Left, LONG Top);
		void SetText (LPCSTR Text);

		LONG GetTextLeftLocation (void);
		LONG GetTextTopLocation (void);

	private:
		LPDIRECT3DDEVICE9 Device;
		LPD3DXFONT Font;
		LPCTSTR FaceName;
		LPCSTR DisplayText;
		DWORD Color;
		UINT Size;
		RECT TextBox;
};

#endif